//数据格式注册——大厅
module RegDataChat {
    export let LEN_33 = 33
    export let LEN_32 = 32
    export let LEN_MACHINE_ID = 33
    export let LEN_MOBILE_PHONE = 12
    export let LEN_PASSWORD = 33
    //BYTE 1 bool 1 word 2 dword 4
    export let CMD_GC_MB_LogonByUserID =
        {
            wMainCmdID: 1,
            wSubCmdID: 101,
            nLenght: 112,
            data: [
                ["dwUserID", "DWORD"],          //玩家标识
                ["szPassword", "TCHAR", 33],       //用户密码  
                ["szPhoneMode", "TCHAR", 21], //手机型号
            ]
        };

    export let CMD_MB_ServerUpdate = {
        wMainCmdID: 101,
        wSubCmdID: 303,
        nLenght: 16,
        data: [
            ["wKind", "WORD"],     // 查询种类
            ["dwUserID", "DWORD"],//玩家标识
            ["arrbReserve", "BYTE[]", 10], // 保留
        ]
    }
    export let CMD_MB_ServerUpdateLeave = {
        wMainCmdID: 101,
        wSubCmdID: 304,
        nLenght: 6,
        data: [
            ["wKind", "WORD"],     // 查询种类
            ["dwUserID", "DWORD"]//玩家标识
        ]
    }


    export let MainCMD_MsgId = {
        1: {
            200: [
                ["lErrorCode", "LONG"],
                ["szDescribeString", "TCHAR", 128]
            ],
            210: [
                ["lErrorCode", "LONG"],
                ["szDescribeString", "TCHAR", 128]
            ],
            306: [
                ["wNotifyMessage", "TCHARS", 128],

            ]
        },
        3: {
            //系统消息
            214: [
                ["wType", "WORD"], //消息类型
                ["wLength", "WORD"], //消息长度
                ["szString", "TCHARS", 1024],//消息内容
            ],
            //中奖信息
            217: [
                ["szNickName", "TCHARS", 32],   //用户昵称
                ["szServerName", "TCHARS", 32],//房间名称
                ["lScore", "DLONG"],//用户分数
            ],
            218: [
                ["struGameRecord", "STRUCT[]", [
                    ["cbKingWinner", "BYTE"], //赢家
                    ["bPlayerTwoPair", "BOOL"],//闲家对子
                    ["bBankerTwoPair", "BOOL"],//庄家对子
                    ["cbPlayerCount", "BYTE"],//闲家点数
                    ["cbBankerCount", "BYTE"],//庄家点数
                    ["byServerLevel", "BYTE"],   //房间等级
                    ["byTableID", "BYTE"]//桌号                       
                ]]
            ]
        }
    }
}